# 基础镜像
FROM openjdk:8
# 环境变量
ENV APP_HOME=/apps
# 创建容器默认进入的目录
WORKDIR $APP_HOME
# 复制jar包到容器中
COPY ./lost-found-gateway-0.0.1-SNAPSHOT.jar ./lost-found-gateway.jar
# 暴露端口
EXPOSE 65000
# 启动命令
ENTRYPOINT ["java","-jar","-Xms256m","-Xmx256m"]
CMD ["lost-found-gateway.jar"]